# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer:
pkgname=py3-cycler
_pkgname=cycler
pkgver=0.11.0
pkgrel=0
pkgdesc="Composable style cycles in Python"
url="https://matplotlib.org/cycler/"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/C/Cycler/$_pkgname-$pkgver.tar.gz
	cycler_version.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-cycler" # Backwards compatibility
provides="py-cycler=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
ceb7e27f2a5c7984645709824a308714c4a08ba3c7540e4fcda10cffbdfb23d0c1adda8a5216c285b8fcc3491712239254d06713af91145244cb5fa78248cf89  cycler-0.11.0.tar.gz
7b6a88ecccbda3487ce56665f1f0bc2e780f1d276f76dfac1cfd1d37fed37182474099efa36359a5f2759b189dc20aec68854bced2756e6e756fe921a9e07669  cycler_version.patch
"
